package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.HealthAssessment;
import com.zzyl.nursing.dto.HealthAssessmentDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 健康评估Service接口
 *
 * @author ruoyi
 * @date 2025-10-18
 */
public interface IHealthAssessmentService extends IService<HealthAssessment> {
    /**
     * 查询健康评估
     *
     * @param id 健康评估主键
     * @return 健康评估
     */
    HealthAssessment selectHealthAssessmentById(Long id);

    /**
     * 查询健康评估列表
     *
     * @param healthAssessment 健康评估
     * @return 健康评估集合
     */
    List<HealthAssessment> selectHealthAssessmentList(HealthAssessment healthAssessment);

    /**
     * 新增健康评估
     *
     * @param requestParam 健康评估
     * @return 结果
     */
    Long insertHealthAssessment(HealthAssessmentDto requestParam);

    /**
     * 修改健康评估
     *
     * @param healthAssessment 健康评估
     * @return 结果
     */
    int updateHealthAssessment(HealthAssessment healthAssessment);

    /**
     * 批量删除健康评估
     *
     * @param ids 需要删除的健康评估主键集合
     * @return 结果
     */
    int deleteHealthAssessmentByIds(Long[] ids);

    /**
     * 删除健康评估信息
     *
     * @param id 健康评估主键
     * @return 结果
     */
    int deleteHealthAssessmentById(Long id);

    /**
     * 上传体检报告PDF格式
     *
     * @param file     体检报告
     * @param idCardNo 身份证
     * @return 上传地址
     */
    String uploadFile(MultipartFile file, String idCardNo);
}

